home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / Guitar / CubicnlUG.README < prev    next >
Encoding:
Text File  |  1992-07-28  |  989 b   |  26 lines

  1. /*  Copyright (c) 1992 - Rick A. Vander Kam - All rights reserved */
  2. Description of the Cubicnl Unit Generator.
  3.  
  4. This unit generator implements a nonlinear, cubic polynomial filter section in direct form.  It has a variable hard clipping threshold level.  If x is the input and y the output, we have
  5. y = aa1*x + aa2*x^2 + aa3*x^3.  If the absolute value of y is greater than the clipping threshold, then the output is clipped to the threshold level.
  6.  
  7. METHODS
  8. =========
  9.  
  10. - setOutput:aPatchPoint
  11.      Used to connect the unit generator's output to aPatchPoint
  12.  
  13. -setInput:aPatchPoint
  14.      Used to connect the unit generator's input to aPatchPoint
  15.  
  16. - setAa1:aDouble
  17.      Used to set the aa1 coefficient to aDouble  (-1.0 to 0.999999)
  18.  
  19. - setAa2:aDouble
  20.      Used to set the aa1 coefficient to aDouble  (-1.0 to 0.999999)
  21.  
  22. - setAa3:aDouble
  23.      Used to set the aa1 coefficient to aDouble  (-1.0 to 0.999999)
  24.  
  25. - setThr:aDouble
  26.      Used to set the clipping threshold to aDouble  (0.0 to 0.999999)